#ifndef CGLWINDOW_H
#define CGLWINDOW_H

#include <QGLWidget>
#include <QOpenGLFunctions>
#include "load3ds.h"

class CGlWindow : public QGLWidget, protected QOpenGLFunctions
{
public:
    CGlWindow(QWidget *parent = nullptr);

protected:
    virtual void initializeGL( ) ;
    virtual void resizeGL (int nWidth, int nHeight);
    virtual void paintGL () ;

public:
    unsigned int texture;
    Vertex vc; // GetCenterBoundBox(&vc, r);
    double r;
    double dx, dy; // GetAspectRatio(...)

    CFile3ds fds; // if (pbound == NULL) No file
    short x,y;     // Координаты окна
    short cx,cy;  // Размер окна
};

#endif // CGLWINDOW_H
